package com.example;

import javafx.fxml.FXML;
import javafx.scene.control.ToggleGroup;

public class ToggleDemoController 
{
	@FXML
	private ToggleGroup myToggleGroup;
	
	// Implementing Initializable Interface no longer required according to
	// http://docs.oracle.com/javafx/2/fxml_get_started/whats_new2.htm
	@SuppressWarnings("unused") // only called by FXMLLoader
	@FXML
	private void initialize()
	{
		// Select the currently selected toggle (that is the first RadioButton) again.
		// This unselects the first RadioButton, while one would expect it to stay selected.
		myToggleGroup.selectToggle(myToggleGroup.getSelectedToggle());
	}
	

}
